package sgbag1.Noyau;

import java.awt.Point;

public class Bagage {
    
    private Embranchement pointDepart;
    private Embranchement pointArrivee;
    private Point position;
    
    public Bagage(Embranchement depart, Embranchement arrivee) {
        super();
        
        pointDepart = depart;
        pointArrivee = arrivee;
        Guichet g = ((Tapis)depart).getGuichet();
        position = new Point(g.getPosition().x, g.getPosition().y);
    }


    public Embranchement getPointArrivee(){
        return pointArrivee;
    }
    
    public Embranchement getPointDepart(){
        return this.pointDepart;
    }
    
    public Point getPosition() {
        return position;
    }
    
    public void setPosition(double x, double y) {
        position.setLocation(x, y);
    }
}
